package com.zr.storehouse.model;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by Administrator on 2019/1/12.
 */
@Data
public class ResDetailsUpdateVo {
    private Integer id;
    @NotBlank(message = "库区名字不能为空")
    private String name;
    @NotBlank(message = "库区编码不能为空")
    private String code;
    @NotNull(message = "状态不能为空")
    private Boolean status;
    @NotNull(message = "描述不能为空")
    private String remark;
    private Boolean warehouseManagement;
    private Boolean wmsIntegrate;
    private Boolean vipStorageSection;

    private String wareHouseId;
//    @NotBlank(message = "库房名称不能为空")
    private String wareHouseName;
//    @NotBlank(message = "库房编码不能为空")
    private String wareHouseCode;
//    @NotBlank(message = "库房描述不能为空")
    private String wareHouseRemark;
    @NotEmpty(message = "集合不能为空")
    @Valid
    private List<ResAttribute> businessAttribute;
}
